/*
 * @Author: wuzhouhai wzh200x@126.com
 * @Date: 2024-07-30 15:47:15
 * @LastEditors: wuzhouhai wzh200x@126.com
 * @LastEditTime: 2024-07-30 15:47:58
 * @FilePath: \dwys_web\assets\script\phoenix\message\c2s\c2sMessage_RoomPmtUpLevel.ts
 * @Description: 
 */
import { BaseMessage } from "../../../../../extensions/phoenix-plugin-client/assets/core/net/message/message";
import { OpcodeApp } from "../../define/opcode.define";
import proto from "../../protoc/ts/proto_app.js";


export class C2SMessageRoomUpLevel extends BaseMessage {
    
    constructor(){
        super(OpcodeApp.Opcode_CS_ROOM_PMT_UP_LEVEL);
        this.messageEntity = proto.c2s_UpRoomPmtLevel.create();
    }

    Encode(): Uint8Array {
        if (!this.messageEntity) {
            return new Uint8Array();
        }
        return proto.c2s_UpRoomPmtLevel.encode(this.messageEntity).finish();
    }
}